package edu.sctu.zhoumengxue.day201505.day20150518.practice;

/**
 * Created by user12 on 2015/5/18.
 */
public class AllData {

    public Teacher[] teacher = new Teacher[2];

    public Teacher[] getTeacher() {
        Teacher teacher = new Teacher();
        teacher.course = "数学";
        teacher.name = "aliy";
        teacher.number = 14002;
        teacher.sex = "女";
        teacher.work = "教授";
        Student[] student = new Student[2];

        for (int i = 0; i < 2; i++) {
            Student students = new Student();
            students.address = "成都市";
            students.age = 10 + i;
            students.code = 85 + i;
            students.name = "boy"+i;
            student[i] = students;

        }
        teacher.student = student;

        Teacher teacher1 = new Teacher();
        teacher1.course = "语文";
        teacher1.name = "问";
        teacher1.number = 14009;
        teacher1.sex = "男";
        teacher1.work = "副教授";
        Student[] student1 = new Student[2];

        for (int i = 0; i < 2; i++) {
            Student students = new Student();
            students.address = "四川省";
            students.age = 15 + i;
            students.code = 75 + i;
            students.name = "girl"+i;
            student[i] = students;

        }
        teacher.student = student1;

        this.teacher[0] = teacher;
        this.teacher[1] = teacher1;

        return this.teacher;


    }
}
